package com.tzs.controller;

import com.alibaba.fastjson.JSONObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 登录处理类
 *
 * @author Tanzs
 * @Date 2019/10/10
 */
@Controller
public class LoginController {
    /*@Autowired
    private UserMapper userMapper;


    @RequestMapping("/loginSubmit")
    @ResponseBody
    public String login(String username,String password){
        JSONObject json=new JSONObject();
        String pass=userMapper.getPassword(username);
        if (pass.equals(password)){
            json.put("code",200);
            json.put("msg","登陆成功！");
        }else{
            json.put("code",400);
            json.put("msg","账户或密码错误！");
        }
        return json.toJSONString();
    }*/

    }


